{% unless page.toc == false or page.layout == 'homepage' %}
<div id="toc">
  <div class="content">
    <h4>On this page
      <a href="#page-content" title="Back to top" class="pull-right"><i class="icon icon-caret-up"></i></a>
    </h4>
    {{ content | toc_only }}
  </div>
</div>
{% endunless %}
